<%--
  Created by IntelliJ IDEA.
  User: CHJYPC
  Date: 2021/5/28
  Time: 10:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>出错！</title>
    <script type="text/javascript">
        var start = 5;
        var step = -1;
        function count() {
            document.getElementById("divMeg").innerHTML = "页面将在" + start+ "秒后返回登录页面...";
            start += step;
            if (start <= 0) {
                start = 5;
                window.history.go(-1);//强制跳转回上一个界面，但表单数据还在
                // window.location.href = "index.jsp";//重定位
            }
            setTimeout("count()", 1000);
        }
        window.onload = count;
    </script>
    <style>
        .myDiv,p{
            margin:0 auto;
            margin-top:80px;
            width:300px;
            color: red;
        }
    </style>
</head>

<body>
<div class="myDiv">
    <p>登录失败，用户名或密码错误！</p>
    <br>
    <div id="divMeg"></div>
</div>
</body>
</html>
